package my.graduation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: RavenLyn
 * @Date: 2024-11-27
 *
 * 医生信息表
 */

@Data
@TableName("doctor")  //表映射
public class Doctor implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
//    @TableField("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 用户名
     */
    @TableField("username")
    private String username;

    /**
     * 密码
     */
    @TableField("password")
    private String password;

    /**
     * 性别
     */
    @TableField("gender")
    private Integer gender;

    /**
     * 职称
     */
    @TableField("title")
    private Integer title;

    /**
     * 研究领域
     */
    @TableField("research_field")
    private String researchField;

    /**
     * 科室id
     */
    @TableField("department_id")
    private Integer departmentId;

    /**
     * 门诊id
     */
    @TableField("clinic_id")
    private Integer clinicId;

    /**
     * 手机号
     */
    @TableField("phone")
    private String phone;

    /**
     * 头像
     */
    @TableField("avatar")
    private String avatar;

}
